<?php
/**
 * @Notes:【】
 * @Date: 2022-06-11 22:33
 */

namespace App\Controller\Api\Settles;

use App\Service\Settings\TaskRefreshService;
use Hyperf\Di\Annotation\Inject;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;

/**
 * @Notes:【】
 * @Date: 2022-06-11 22:36
 * @ApiController(prefix="api/settles/taskRefresh")
 */
class TaskRefreshController
{
    /**
     * @Inject()
     * @var TaskRefreshService
     */
    protected $taskRefreshService;

    /**
     * @Notes:【】
     * @Date: 2022-06-11 22:47
     * @PostApi(path="lists")
     */
    public function lists()
    {
        $data = $this->taskRefreshService->page(false)->lists();
        _SUCCESS($data);
    }
}